package com.mjkj.demo.utils;

import java.util.List;

/**
 * @author XuDoom
 * @date 2023/4/4 16:25
 */
public class CollectionUtil {

    /**
     * 获取最后一行
     */
    public static final <S> S last(List<S> list) {
        int size = list.size();
        if (size != 0) {
            return list.get(size - 1);
        }
        return null;
    }
}
